<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="css/amazeui.min.css" />
    <link rel="stylesheet" href="css/admin.css" />
</head>

<body>
<div class="admin-content-body">
    <div class="am-cf am-padding am-padding-bottom-0">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">商品管理</strong><small></small></div>
    </div>

    <hr>

    <div class="am-g">
        <div class="am-u-sm-12 am-u-md-6">
            <div class="am-btn-toolbar">
                <div class="am-btn-group am-btn-group-xs">
                    <button type="button" class="am-btn am-btn-default"> <a th:href="@{/goodsUpload/firstClassification}">新增</a ></button>
                </div>
            </div>
        </div>
        <div class="am-u-sm-12 am-u-md-3">

        </div>

    </div>
    <div class="am-g">
        <div class="am-u-sm-12">
            <form class="am-form">
                <table class="am-table am-table-striped am-table-hover table-main">
                    <thead>
                    <tr>
                        <th class="table-set">商品ID</th>
                        <th class="table-title">商品名称</th>
                        <th class="table-type">商品价格</th>
                        <th class="table-set">商品说明</th>
                        <th class="table-set">商品亮点</th>
                        <th class="table-title">商品规格</th>
                        <th class="table-type">商品保质期</th>
                        <th class="table-set">储存方式</th>
                        <th class="table-title">包装</th>
                        <th class="table-title">商品主展示图</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="goods :${goodss}">
                        <td th:text="${goods.getGoodsid()}">
                        <td th:text="${goods.getTradename()}">
                        <td th:text="${goods.getPrice()}">
                        <td th:text="${goods.getCommoditydescription()}">
                        <td th:text="${goods.getCommodityhighlights()}">
                        <td th:text="${goods.getSpecifications()}">
                        <td th:text="${goods.getQualityguaranteeperiod()}">
                        <td th:text="${goods.getStoragemode()}">
                        <td th:text="${goods.getBaozhuang()}">
                        <td><img class="am-img-thumbnail am-img-bdrs" th:src="@{/image/{fileName}(fileName=(${goods.getPicturepath()}))}" alt="" style="height: 1cm;width: 1cm">
                            <div class="am-btn-toolbar">
                                <div class="am-btn-group am-btn-group-xs">
                                    <a th:href="@{/ManageGoods//statusChange(goodsid=${goods.getGoodsid()},saleststus=1)}">上架</a >
                                    <a th:href="@{/ManageGoods//statusChange(goodsid=${goods.getGoodsid()},saleststus=1)}">下架</a >
                                    <a th:href="@{/goodsUpload//changeGoodsMessage(goodsid=${goods.getGoodsid()})}">修改</a >
                                </div>
                            </div>

                    </tr>
                    </tbody>
                </table>

                <hr>
            </form>
        </div>
    </div>
</div>
</body>
</html>